package ua.org.nuos.sdms.middle.service;

import ua.org.nuos.sdms.middle.util.exception.EmailVerificationException;

import javax.ejb.Local;

/**
 * User: Denis Fahritdinov
 * Date: 10/7/12
 * Time: 5:47 PM
 */
@Local
public interface EmailVerificationServiceLocal {

    /**
     * Send email verification message (email) to current user
     */
    void sendEmailVerificationMessage();

    /**
     * Check email verification code from user message (email)
     *
     * @param code
     * @throws EmailVerificationException
     */
    void completeEmailVerification(String code) throws EmailVerificationException;

    /**
     * Is current user has valid email
     *
     * @return
     */
    boolean isEmailValid();
}
